import { createApp } from 'vue'
import router from './router'
import pinia from './store'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import '@/Mock'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import '@/assets/style/index.scss'
import App from './App.vue'

export const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// import.meta.env.APP_ENV = 'development'
// import.meta.env.APP_ENV = 'production'
pinia.use(piniaPluginPersistedstate)
app
.use(pinia)
.use(router)
.mount('#app')
